public class test1 {
    static void main() {
       int[] arr = {1, 2, 3, 4, 5};
      /*  System.out.println(arr[0]);
        System.out.println(arr[1]);
        System.out.println(arr[2]);
        System.out.println(arr[3]);
        System.out.println(arr[4]);
      for ( int i = 0; i < 5; i++ ) {
          System.out.println(arr[i]);*/
      for ( int j = 0; j < arr.length; j++ ) {
          System.out.println(arr[j]);
      }

      }

    }

